package com.fowo.api.inventory.model;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.format.DateTimeFormat;
import com.alibaba.excel.annotation.write.style.ContentStyle;
import com.alibaba.excel.enums.poi.HorizontalAlignmentEnum;
import javax.validation.constraints.*;
import lombok.Data;

/** 库存库位放置变动表记录 导入导出辅助模型 */
@Data
public class InventoryPlacementVariationExcelPo {

  @ExcelProperty(value = "仓库内码")
  private Long stockId;

  @ExcelProperty(value = "项目内码")
  private Long projectId;

  @ExcelProperty(value = "物料内码")
  private Long itemId;

  @Size(max = 50, message = "批号长度不能超过20")
  @ContentStyle(
    horizontalAlignment = HorizontalAlignmentEnum.LEFT,
    dataFormat = 49
  )
  @ExcelProperty(value = "批号")
  private String batchNo;

  @Size(max = 50, message = "变动类型长度不能超过20")
  @ContentStyle(
    horizontalAlignment = HorizontalAlignmentEnum.LEFT,
    dataFormat = 49
  )
  @ExcelProperty(value = "变动类型")
  private String changeType;

  @Size(max = 50, message = "变动源类型长度不能超过20")
  @ContentStyle(
    horizontalAlignment = HorizontalAlignmentEnum.LEFT,
    dataFormat = 49
  )
  @ExcelProperty(value = "变动源类型")
  private String fromType;

  @Size(max = 50, message = "变动目标类型长度不能超过20")
  @ContentStyle(
    horizontalAlignment = HorizontalAlignmentEnum.LEFT,
    dataFormat = 49
  )
  @ExcelProperty(value = "变动目标类型")
  private String toType;

  @Size(max = 50, message = "关联单据号长度不能超过20")
  @ContentStyle(
    horizontalAlignment = HorizontalAlignmentEnum.LEFT,
    dataFormat = 49
  )
  @ExcelProperty(value = "关联单据号")
  private String formNum;

  @Size(max = 50, message = "关联制单人长度不能超过20")
  @ContentStyle(
    horizontalAlignment = HorizontalAlignmentEnum.LEFT,
    dataFormat = 49
  )
  @ExcelProperty(value = "关联制单人")
  private String formOperator;

  @Size(max = 50, message = "操作业务名称长度不能超过20")
  @ContentStyle(
    horizontalAlignment = HorizontalAlignmentEnum.LEFT,
    dataFormat = 49
  )
  @ExcelProperty(value = "操作业务名称")
  private String operate;

  @Size(max = 50, message = "关联唯一操作键长度不能超过20")
  @ContentStyle(
    horizontalAlignment = HorizontalAlignmentEnum.LEFT,
    dataFormat = 49
  )
  @ExcelProperty(value = "关联唯一操作键")
  private String operateKey;

  @DateTimeFormat("yyyy年MM月dd日")
  @ExcelProperty(value = "操作时间")
  private java.util.Date operateTime;

  @ExcelProperty(value = "库位内码")
  private Long binId;

  @Size(max = 50, message = "店铺id长度不能超过20")
  @ContentStyle(
    horizontalAlignment = HorizontalAlignmentEnum.LEFT,
    dataFormat = 49
  )
  @ExcelProperty(value = "店铺id")
  private String shopId;

  @Size(max = 50, message = "fnSku长度不能超过20")
  @ContentStyle(
    horizontalAlignment = HorizontalAlignmentEnum.LEFT,
    dataFormat = 49
  )
  @ExcelProperty(value = "fnSku")
  private String fnSku;

  @ExcelProperty(value = "保质期(天)")
  private Integer shelfLife;

  @DateTimeFormat("yyyy年MM月dd日")
  @ExcelProperty(value = "生产日期")
  private java.util.Date productionDate;

  @DateTimeFormat("yyyy年MM月dd日")
  @ExcelProperty(value = "有效期至")
  private java.util.Date expiryDate;

  @ExcelProperty(value = "锁库数量")
  private java.math.BigDecimal lockQty;

  @ExcelProperty(value = "锁库数量变更")
  private java.math.BigDecimal changeLockQty;

  @ExcelProperty(value = "在途数量")
  private java.math.BigDecimal wayQty;

  @ExcelProperty(value = "在途数量变更")
  private java.math.BigDecimal changeWayQty;

  @ExcelProperty(value = "库存数量")
  private java.math.BigDecimal stockQty;

  @ExcelProperty(value = "库存数量变更")
  private java.math.BigDecimal changeStockQty;
}
